<template>
	<view>
		<view>
			<image class="img" src="../../static/correct.png" ></image>
		</view>
		<view style="margin-top: 19rpx; font-size: 24px;">提交成功</view>
		<view style="margin-top: 40rpx; font-size: 18px;">快来查看您制作的页面吧!</view>
		<view style="margin-top: 40rpx;">
			<button class="butt" @click="clieye" >查看资料</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				_id:0,
				status:-1,
			}
		},
		onLoad(res) {
			this._id=res.id
			this.status=res.mb
		},
		methods:{
			clieye(){
				if (this.status == 0) {
					uni.navigateTo({
						url: "../detail0/index?id=" + this._id
					})
				} else if (this.status == 1) {
					uni.navigateTo({
						url: "../detail1/index?id=" + this._id
					})
				}
			}
		}
	}
</script>

<style lang="scss">
	page {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
		text-align: center;
		.img{
			width: 302rpx;
			height: 302rpx;
		}
		.butt{
			color: rgba(255, 255, 255, 1);
			background: rgba(67, 207, 124, 1); 
			border-radius: 30px;
		}
	}
</style>